home *** CD-ROM | disk | FTP | other *** search
- Readme - Calgor V1.21 - 23/3/96
-
- Introduction
-
- Calgor started life as third year University project (under the
- heading of Demonstrations of Computer Science). The primary goal
- being to create an environment where the user could learn about
- different algorithms and their design. It is based on two
- different learning strategies, that of drill and rote and
- learning through personal experimentation.
-
- You may use Calgor as is, The player comes with the following
- installed:-
-
- Demonstrations of While, Do While, For, If and Switch C program
- control statements. Array data structure example, Insertion,
- Selection, Bubble and Quick Sort Algorithms (all with .txt files
- explaining their mechanics).
-
- Or if you have a C compiler you can use it to animate your own C
- algorithms (See the Calgor Programming Manual for details).
-
- Requirements
-
- Calgor needs 1 MB chip ram, 1/2 MB Other Ram, Workbench 2.04+ and
- one out of the following fonts installed: helvetica 13, times
- 11, courier 11 or napsa 11. Calgor is run from Workbench,
-
- Running From Disk
-
- Double click on the Calgor Icon and the program will run. You
- may have to alter data/editor.dat to point at your favourite text
- viewer, default is set to "ed" (To do this just edit
- data/editor.dat with a text editor). If you are going to program
- your own C algorithms, you will need to copy the hold directory
- to your compilers header search path (The default directory used
- by Dice is Dinclude:).
-
- Installing Disk To Hard Drive
-
- Just copy the Disk "Cal" to the destination directory you
- want (by dragging the Disk Icon Cal over to the directory).
-
- Place in the s:user-startup an Assign, which assigns The Volume
- Cal: to the directory path leading to Calgor directory.
-
- E.g.
-
- I have copied Cal over to "Work:programming/" so the assign
- would be
-
- "Assign Cal: Work:programming/Cal"
-
- Reboot, then just double click on the Calgor Icon to run.
- Double click on the Calgor Icon and the program will run. You
- may have to alter Cal:data/editor.dat to point at your favourite
- text viewer, default is set to "ed" (To do this just edit
- data/editor.dat with a text editor).
-
- If you are going to program your own C algorithms, you will need
- to copy the hold directory to your compilers header search path
- (the default directory used by Dice is Dinclude:).
-
- Instructions For Use: Program, Menu
-
- Use the Function keys (F1-F5) to select the heading and the
- number keys (1-5) to select the options. Alternatively you can
- use the mouse and left click on either the function key graphic
- to select the heading, or the key graphic to select the option.
- Clicking on the exit box or pressing ESC will exit from the
- program.
-
- You may at any time press Left Amiga and M to flick through the
- different screens and hence get back to the workbench (This will
- have the affect of putting Calgor to sleep). To restore
- Calgor, go to the Workbench Menus and select the Tools
- "Restore_Calgor" Option.
-
- Keys: Menu:
-
- F1: Heading-Option Bank 1 Num Key 1 Option 1
- F2: Heading-Option Bank 2 Num Key 2 Option 2
- F3: Heading-Option Bank 3 Num Key 3 Option 3
- F4: Heading-Option Bank 4 Num Key 4 Option 4
- F5: Heading-Option Bank 5 Num Key 5 Option 5
-
- Left Amiga and M - Put Calgor to sleep.
-
- To play an animation
-
- The animation menu has six functions, Play, Fast Forward, Pause,
- Stop, Eject and Information, to initiate a function just click on
- their respective graphics or press the appropriate keys (see
- below).
-
- Keys, Animation Menu
-
- Num Key 1 - Play
- Num Key 2 - Fast Forward (Accumulative)
- Num Key 3 - Pause
- Num Key 4 - Stop
- Num Key 5 - Information
- ESC - Eject or Stop (Depends on if an animation is playing
- or not).
-
- The information function may only be accessed when the animation
- is paused or stopped and will cause the .txt file for that
- demonstration to be displayed via the text editor named in
- data/editor.dat.
-
- Specification
-
- This version of Calgor (V1.21) is limited in what it can do.
- Since I'm starting a whole new project, anyone wishing to further
- this one, may get into contact with me via Email.
-
- Calgor can model the behaviour of an integer array, maximum 10
- elements per program. Calgor can model 10 integer variables
- per function.
-
- The animation functions (see programming manual for specifics),
- use a limited parser to assess values. It can evaluate absolute
- number (10), variable (x), array with variable (a[x]), array
- with absolute offset (a[10]), or variable and integer offset
- (a[x+10]), however these are fixed in stone, a[b[9]] would not be
- evaluated properly.
-
- Calgor does not model structure or pointer behaviour.
-
- Errors
-
- If at anytime Calgor produces an error it will record it
- "CalLog". A more detailed error message may be produced if
- Calgor is run from the CLI.
-
- Bugs.
-
- 1). When using a hi-res intuition pointer (WB 3.0), Calgor
- doesn't display it's pointer correctly.
-
- 2). Using a 68030, with low memory, and datacaches enabled,
- the menu text sometimes corrupts. Calgor fixes this by switching
- off the datacaches (via the cpu command) when it starts. The
- datacaches are enabled when you exit from Calgor.
-
- To switch data caches off type (in a CLI):
- CPU nodatacache <RETURN>
- To switch data caches back on, type
- CPU datacache <RETURN>
-